
func void b_enter_demoncave_kapitel_1()
{
};


var int enterdemoncave_kapitel2;

func void b_enter_demoncave_kapitel_2()
{
	if(ENTERDEMONCAVE_KAPITEL2 == FALSE)
	{
		ENTERDEMONCAVE_KAPITEL2 = TRUE;
	};
};


var int enterdemoncave_kapitel3;

func void b_enter_demoncave_kapitel_3()
{
	if(ENTERDEMONCAVE_KAPITEL3 == FALSE)
	{
		ENTERDEMONCAVE_KAPITEL3 = TRUE;
	};
};


var int enterdemoncave_kapitel4;

func void b_enter_demoncave_kapitel_4()
{
	if(ENTERDEMONCAVE_KAPITEL4 == FALSE)
	{
		ENTERDEMONCAVE_KAPITEL4 = TRUE;
	};
};


var int enterdemoncave_kapitel5;

func void b_enter_demoncave_kapitel_5()
{
	if(ENTERDEMONCAVE_KAPITEL5 == FALSE)
	{
		ENTERDEMONCAVE_KAPITEL5 = TRUE;
	};
};


var int enterdemoncave_kapitel6;

func void b_enter_demoncave_kapitel_6()
{
	if(ENTERDEMONCAVE_KAPITEL6 == FALSE)
	{
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_01");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_02");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_03");
		Wld_InsertNpc(Zombie01,"FP_ROAM_MT_04");
		Wld_InsertNpc(Zombie02,"FP_ROAM_MT_05");
		Wld_InsertNpc(Zombie03,"FP_ROAM_MT_06");
		Wld_InsertNpc(Zombie04,"FP_ROAM_MT_07");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_08");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_09");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_10");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_11");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_12");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_13");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_14");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_15");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_16");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_17");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_18");
		Wld_InsertNpc(Zombie01,"FP_ROAM_MT_19");
		Wld_InsertNpc(Zombie02,"FP_ROAM_MT_20");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_21");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_22");
		Wld_InsertNpc(Zombie03,"FP_ROAM_MT_23");
		Wld_InsertNpc(Zombie04,"FP_ROAM_MT_24");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_25");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_26");
		Wld_InsertNpc(Zombie01,"FP_ROAM_MT_27");
		Wld_InsertNpc(Zombie02,"FP_ROAM_MT_28");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_29");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_30");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_31");
		Wld_InsertNpc(Zombie04,"FP_ROAM_MT_32");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_33");
		Wld_InsertNpc(Skeleton,"FP_ROAM_MT_34");
		ENTERDEMONCAVE_KAPITEL6 = TRUE;
	};
};

func void b_enter_demoncave()
{
	B_InitNpcGlobals();
	if(Kapitel >= 1)
	{
		b_enter_demoncave_kapitel_1();
	};
	if(Kapitel >= 2)
	{
		b_enter_demoncave_kapitel_2();
	};
	if(Kapitel >= 3)
	{
		b_enter_demoncave_kapitel_3();
	};
	if(Kapitel >= 4)
	{
		b_enter_demoncave_kapitel_4();
	};
	if(Kapitel >= 5)
	{
		b_enter_demoncave_kapitel_5();
	};
	if(Kapitel >= 6)
	{
		b_enter_demoncave_kapitel_6();
	};
	CurrentLevel = DEMONCAVE_ZEN;
	B_InitNpcGlobals();
};

